﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Sector7.Restaurant.EntityType
{
    /// <summary>
    /// 类型实体基类
    /// </summary>
    [Serializable]
    [DataContract]
    public class TypeBase : Entity
    {
        #region Inner members
        private int _typeId;
        private string _typeName;
        private int _usage;
        #endregion

        #region Accessor
        /// <summary>
        /// 获取或设置数据类型编号
        /// </summary>
        [DataMember]
        public int TypeId
        {
            get { return _typeId; }
            set { _typeId = value; }
        }

        /// <summary>
        /// 获取或设置数据类型名称
        /// </summary>
        [DataMember]
        public string TypeName
        {
            get { return _typeName; }
            set { _typeName = value; }
        }

        /// <summary>
        /// 获取或设置数据类型用途
        /// </summary>
        [DataMember]
        public int Usage
        {
            get { return _usage; }
            set { _usage = value; }
        }
        #endregion

        #region Structure
        #endregion
    }
}
